/<?php
$PaymentList = Dracosys::getSessionValue(SESSION_INTERFACE, 'PendingPaymentList');
?>
<h2>Cobran&ccedil;as Pendentes</h2>
<section id="ReleasePayment">
        <table id="ReleasePayment_billet" class="list">
            <thead>
                <tr>
                    <th>Valor</th>
                    <th>Data</th>
                    <th>Per&iacute;odo</th>
                    <th>Gerar Boleto</th>
                </tr>
            </thead>
            <tbody>
                <?php
                if(!empty($PaymentList)):
                    foreach ($PaymentList as $Payment):
                ?>
                    <tr>
                        <td><?= MathUtils::money($Payment->getFoValor()) ?></td>
                        <td><?= dateBDtoBR($Payment->getDtData()) ?></td>
                        <td><?= $Payment->getPeriod() ?></td>
                        <td>
                            <a href="<?=DRA_URL?>boleto/visualizar-boleto/id/<?=$Payment->getIDDebito()?>">
                                <img src="<?= DRA_VIEW_URL ?>/images/boleto_1.png" alt="Gerar Boleto" />
                            </a>
                        </td>
                    </tr>
                <?php
                    endforeach;
                else:
                ?>
                    <tr class="nodata">
                        <td colspan="8">
                            Nenhum resultado foi encontrado!
                        </td>
                    </tr>
                <?php
                endif;
                ?>
            </tbody>
        </table>
</section>